{template 'common/header'}
<style>
	body{padding:0;margin:0;background-image:url('{if empty($_W['styles']['indexbgimg'])}./themes/style19/images/bg_index.jpg{else}{$_W['styles']['indexbgimg']}{/if}');background-size:cover;color:{$_W['styles']['fontcolor']}; background-color:{$_W['styles']['indexbgcolor']};{$_W['styles']['indexbgextra']}}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:75%; padding:31% 0 0 5.2%;}
	.box .box-item{float:left; text-align:center;  display:block; width:45%; margin:0 3.2% 5.2% 0; border-radius:3.66em; height:6.82em; text-decoration:none; outline:none;padding:10px; position:relative; overflow:hidden; color:#fff; }
	.box i{display:inline-block; height:50%; margin:10% 0 4%; vertical-align:middle; color:#fff; width:45px; font-size:35px;}
	.box i.icon{position:absolute; width:100%; height:100%; left:0; top:0; margin:0;}
	.box span{color:{$_W['styles']['fontnavcolor']};display:inline-block; width:98%; height:1.38em; font-weight:bold; text-align:center; overflow:hidden; position:absolute; bottom:15px; left:0;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{loop $navs $nav}
	{php if($num == 0) $bg = 'rgba(209,166,76,0.95)';}
	{php if($num == 1) $bg = 'rgba(100,158,185,0.95)';}
	{php if($num == 2) $bg = 'rgba(124,161,86,0.95)';}
	{php if($num == 3) $bg = 'rgba(202,89,46,0.95)';}
	{php if($num == 4) $bg = 'rgba(103,101,165,0.95)';}
	{php if($num == 5) $bg = 'rgba(194,123,188,0.95)';}
	<a href="{$nav['url']}" class="box-item" style="background:{$bg};">
		{if !empty($nav['icon'])}
		<i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover;" class="icon"></i>
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++; if($num > 5) $num = 0;}
	{/loop}
</div>
{template 'common/footer'}